Revert "gdk: enable rgba visuals by default"
authorMatthias Clasen <mclasen@redhat.com>
Tue, 4 Feb 2014 16:39:48 +0000 (11:39 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 4 Feb 2014 18:15:46 +0000 (13:15 -0500)
This reverts commit a2ccb6601e0fb6dbe55517ad399728a00f6d7e40.

This turns out to break GtkStatusIcon, and invalidates
the documentation of gdk_screen_get_system_visual().

docs/reference/gtk/running.sgml
gdk/x11/gdkvisual-x11.c

index c7d2d9bc9a18aa5da1369a90864a67db69b45c05..8065e194e81f2ad8a79f48bd409ccb2c01b7ac7f 100644 (file)
@@ -478,15 +478,6 @@ nevertheless.
   </para>
 </formalpara>
 
-<formalpara>
-  <title><envar>GDK_RGBA</envar></title>
-
-  <para>
-    Since 3.12, this environment variable can be used to prevent
-    using RGBA visuals on the X11 backend by setting GDK_RGBA=0.
-  </para>
-</formalpara>
-
 <formalpara>
   <title><envar>XDG_DATA_HOME</envar>, <envar>XDG_DATA_DIRS</envar></title>
 
index 0c401f281403e1be89ecb73eb57fd5759ac246ac..0898a9f6b931de76749466828dd28d279a32fe63 100644 (file)
@@ -285,14 +285,6 @@ _gdk_x11_screen_init_visuals (GdkScreen *screen)
         }
     }
 
-  /* prefer the RGBA visual unless GDK_RGBA=0 */
-  if (x11_screen->rgba_visual)
-    {
-      const gchar *csd_env = g_getenv ("GDK_RGBA");
-      if (g_strcmp0 (csd_env, "0") != 0)
-          x11_screen->system_visual = x11_screen->rgba_visual;
-    }
-
 #ifdef G_ENABLE_DEBUG
   if (_gdk_debug_flags & GDK_DEBUG_MISC)
     {